#include "glare.core.Shader.h"

namespace Glare {

	const bool Shader::GetConstantBufferDescription(const uint& index, ConstantBufferDescription** description)
	{
		if (index < 0 || index > _constant_buffers.size() - 1)
			return false;

		*description = &_constant_buffers[index];

		return true;
	}

	const uint Shader::GetNumConstantBuffers() const
	{
		return _constant_buffers.size();
	}

	void Shader::_AddConstantBufferDescription(const ConstantBufferDescription& description)
	{
		_constant_buffers.push_back(description);
	}

	const Shader::Type VertexShader::GetType() const
	{
		return Shader::VertexShader;
	}

	const Shader::Type PixelShader::GetType() const
	{
		return Shader::PixelShader;
	}
}